import React from 'react';
import ReactDOM, { render } from 'react-dom';
import './index.css';
import App from './App';


function myRender() {
  render(
    <React.StrictMode>
      <App />
    </React.StrictMode>,
    document.getElementById('root')//挂载对象
  );
}

// 被乾坤调用时
// if (window.__POWERED_BY_QIANKUN__) {
//   __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
// }
// 独立运行时
if (!window.__POWERED_BY_QIANKUN__) {
  myRender();
}



export const bootstrap = async () => { }
export const mount = async (props) => {
  console.log(props.b,100);
  myRender();
}
export const unmount = async () => {
  // 卸载应用---挂载的谁，就卸载谁
  ReactDOM.unmountComponentAtNode(document.getElementById('root'))
}

